//
//  MainViewController.swift
//  斗鱼直播Swift
//
//  Created by admin on 2018/2/22.
//  Copyright © 2018年 admin. All rights reserved.
//

import UIKit

class MainViewController: UITabBarController {

    override func viewDidLoad() {
        super.viewDidLoad()
        addVC(name: "Home")
        addVC(name: "Live")
        addVC(name: "Concern")
        addVC(name: "Mine")
    }

}

extension MainViewController {
    private func addVC (name:String) {
        let vc = UIStoryboard.init(name: name, bundle: nil).instantiateInitialViewController()!
        
        addChildViewController(vc)
    }
}
